package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库对象 erp_purchase_inventory
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public class ErpPurchaseInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库ID，主键 */
    private String id;

    /** 关联采购单管理表ID */
    private String purchaseOrderId;

    /** 商品SKU */
    @Excel(name = "商品SKU")
    private String productSku;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long inboundQuantity;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inboundDate;

    /** 仓库位置 */
    @Excel(name = "仓库位置")
    private String warehouseLocation;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPurchaseOrderId(String purchaseOrderId) 
    {
        this.purchaseOrderId = purchaseOrderId;
    }

    public String getPurchaseOrderId() 
    {
        return purchaseOrderId;
    }
    public void setProductSku(String productSku) 
    {
        this.productSku = productSku;
    }

    public String getProductSku() 
    {
        return productSku;
    }
    public void setInboundQuantity(Long inboundQuantity) 
    {
        this.inboundQuantity = inboundQuantity;
    }

    public Long getInboundQuantity() 
    {
        return inboundQuantity;
    }
    public void setInboundDate(Date inboundDate) 
    {
        this.inboundDate = inboundDate;
    }

    public Date getInboundDate() 
    {
        return inboundDate;
    }
    public void setWarehouseLocation(String warehouseLocation) 
    {
        this.warehouseLocation = warehouseLocation;
    }

    public String getWarehouseLocation() 
    {
        return warehouseLocation;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseOrderId", getPurchaseOrderId())
            .append("productSku", getProductSku())
            .append("inboundQuantity", getInboundQuantity())
            .append("inboundDate", getInboundDate())
            .append("warehouseLocation", getWarehouseLocation())
            .append("operator", getOperator())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
